import Vue from 'vue'
import VueRouter from 'vue-router'


Vue.use(VueRouter)
//导入组件（登录页的）
// import login from '../views/login.vue'
import login from '@/views/login.vue'
//@符合等价与/src



const routes = [
  {
    name:'login',
    path:'/login',
    component:login
  }
]

const router = new VueRouter({
  routes
})

export default router
